package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.KfdbProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface KfdbProductService extends BaseService<KfdbProductBean> {

	KfdbProductBean getKfdbProductBeanById(String id) throws Exception;
	
	void removeKfdbProductBeanById(String id) throws Exception;
	
	void removeKfdbProductBeanByIds(String ids) throws Exception;
	
	KfdbProductBean saveKfdbProductBean(KfdbProductBean crm) throws Exception;
	
	KfdbProductBean updateKfdbProductBean(KfdbProductBean crm) throws Exception;
	
	Page<KfdbProductBean>  findKfdbProductBeanByCond(KfdbProductBean bean,
			Page<KfdbProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveKfdbProductBeanExt(String sql) throws Exception;

	String findKfdbProductBeanExtCreate(String tableName) throws Exception;

	String findKfdbProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findKfdbProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasKfdbProductBeanExtData(String tableName, String id)
			throws Exception;
}